#ifndef TOTALITEM_H
#define TOTALITEM_H

#include <QWidget>
#include <QLabel>
#include <QPaintEvent>

namespace kepen {
namespace core {


class TotalItem : public QWidget
{
    Q_OBJECT
public:
    explicit TotalItem(QWidget *parent = nullptr);
    ~TotalItem();
    void SetTotal(int nTotal,int nTotalPage);
    int GetTotal() const;

protected:
    void paintEvent(QPaintEvent* event) override;

private:
    QLabel* m_pLabel;
    // QHBoxLayout* m_pHMainLayout;
    int m_nTotal;
};

}
}

#endif // TOTALITEM_H
